package com.tony.spring.mode.bulid;

/**
 * 建造者模式
 * @author qiu
 *
 */
public class BulidMode {
	
	private String name;
	private String password;
	private String password1;
	private String password2;
	private String password3;
	private String password4;
	private String password5;
	private String password6;
	private String password7;
	private String password8;
	private String password9;
	private String password10;
	private String password11;
	private String password12;
	
	
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getPassword1() {
		return password1;
	}

	public void setPassword1(String password1) {
		this.password1 = password1;
	}

	public String getPassword2() {
		return password2;
	}

	public void setPassword2(String password2) {
		this.password2 = password2;
	}

	public String getPassword3() {
		return password3;
	}

	public void setPassword3(String password3) {
		this.password3 = password3;
	}

	public String getPassword4() {
		return password4;
	}

	public void setPassword4(String password4) {
		this.password4 = password4;
	}

	public String getPassword5() {
		return password5;
	}

	public void setPassword5(String password5) {
		this.password5 = password5;
	}

	public String getPassword6() {
		return password6;
	}

	public void setPassword6(String password6) {
		this.password6 = password6;
	}

	public String getPassword7() {
		return password7;
	}

	public void setPassword7(String password7) {
		this.password7 = password7;
	}

	public String getPassword8() {
		return password8;
	}

	public void setPassword8(String password8) {
		this.password8 = password8;
	}

	public String getPassword9() {
		return password9;
	}

	public void setPassword9(String password9) {
		this.password9 = password9;
	}

	public String getPassword10() {
		return password10;
	}

	public void setPassword10(String password10) {
		this.password10 = password10;
	}

	public String getPassword11() {
		return password11;
	}

	public void setPassword11(String password11) {
		this.password11 = password11;
	}

	public String getPassword12() {
		return password12;
	}

	public void setPassword12(String password12) {
		this.password12 = password12;
	}

	private BulidMode(){
		
	}
	
	// 先创建一个实例存在
	private static BulidMode bulidMode = new BulidMode();
	
	// 才能进行调用
	public static BulidMode buildName(String name){
		bulidMode.setName(name);
		
		return bulidMode;
	}
	
	// 才能进行调用
		public static BulidMode buildPassword(String password){
			bulidMode.setPassword(password);
			
			return bulidMode;
		}
		// 才能进行调用
		public static BulidMode buildPassword1(String password1){
			bulidMode.setPassword2(password1);
			
			return bulidMode;
		}
		// 才能进行调用
		public static BulidMode buildPassword2(String password2){
			bulidMode.setPassword3(password2);
			
			return bulidMode;
		}
		// 才能进行调用
		public static BulidMode buildPassword3(String password3){
			bulidMode.setPassword4(password3);
			
			return bulidMode;
		}
		// 才能进行调用
		public static BulidMode buildPassword4(String password4){
			bulidMode.setPassword5(password4);
			
			return bulidMode;
		}
		
	
	

}
